<?
	$day = date('d');
	$month = date('m');
	$year = date('Y');
?>

<img src="static/css/closePopup.png" class="close" alt="close" />
<div class="title">
	<?= $title ?>
</div>
<div class="content" style="width: auto; margin-top: 20px; font-size: 14px">
<!-- 	<table cellpadding="0" cellspacing="0" width="100%">
		<tr>
			<td width="33%">
				<select name="year" style="margin-top: 15px">
					<? $curY = date('Y'); ?>
					<? for ($i = $curY; $i <= $curY+2; $i++): ?>
						<?
							if ($curY == $i) {
								$s = 'selected="selected"';
							}
							else {
								$s = '';
							}
						?>
						<option value="<?= $i ?>" <?= $curY ?>><?= $i ?></option>
					<? endfor ?>
				</select>
			</td>
			<td width="34%">
				<select name="month" style="margin-top: 15px">
					<? for ($i = 1; $i <= 12; $i++): ?>
						<?
							if ($i < 10) {
								$v = '0'.$i;
							}
							else {
								$v = $i;
							}

							switch ($v) {
								case '01':
									$m = 'январь';
									break;
								case '02':
									$m = 'февраль';
									break;
								case '03':
									$m = 'март';
									break;
								case '04':
									$m = 'апрель';
									break;
								case '05':
									$m = 'май';
									break;
								case '06':
									$m = 'июнь';
									break;
								case '07':
									$m = 'июль';
									break;
								case '08':
									$m = 'август';
									break;
								case '09':
									$m = 'сентябрь';
									break;
								case 10:
									$m = 'октябрь';
									break;
								case 11:
									$m = 'ноябрь';
									break;
								case 12:
									$m = 'декабрь';
									break;
							}

							$curM = date('m');

							if ($curM == $i) {
								$s = 'selected="selected"';
							}
							else {
								$s = '';
							}
						?>
						<option value="<?= $v ?>" <?= $s ?>><?= $m ?></option>
					<? endfor ?>
				</select>
			</td>
			<td width="33%">
				<select name="day" style="margin-top: 15px">
					<? for ($i = 1; $i <= 31; $i++): ?>
						<?
							if ($i < 10) {
								$v = '0'.$i;
							}
							else {
								$v = $i;
							}

							$curD = date('d');

							if ($curD == $i) {
								$s = 'selected="selected"';
							}
							else {
								$s = '';
							}
						?>
						<option value="<?= $v ?>" <?= $s ?>>
							<?= $i ?>
						</option>
					<? endfor ?>
				</select>
			</td>
		</tr>
	</table>
	<div class="blueButton" onmousedown="selectWhen(this)" style="width: 100px; margin-top: 15px; border-bottom: solid 1px #003C92">
		<div style="padding: 3px 0">Выбрать</div>
	</div> -->
	<script type="text/javascript">
	    $(function() {
	    	$.datepicker.formatDate('yy-mm-dd');
	        $("#datepicker").datepicker({
	        	onSelect: function(dateText, inst) {
	        		selectWhen(this, dateText);
	        	},
	        	dateFormat : "dd-mm-yy"
	        });
	    });
	</script>
	<div id="datepicker"></div>
</div>